<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<body>
<h2>User</h2>

personValidator
    <form action="${pageContext.request.contextPath}/person/personValidator.do" method="post">
        姓名：<input name="username" type="text"><br>
        年龄：<input name="age" type="number" ><br>
        <input type="submit">
    </form>

personValidator2  不使用声明式注解校验，采用手动校验
    <form action="${pageContext.request.contextPath}/person/personValidator2.do" method="post">
        姓名：<input name="username" type="text"><br>
        年龄：<input name="age" type="number" ><br>
        <input type="submit">
    </form>


</body>
</html>
